package rules;

public class Traffic {
	private String name;
	private double speed;
	
	public Traffic() {
		super();
	}
	public Traffic(String name, double speed) {
		super();
		this.name = name;
		this.speed = speed;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getSpeed() {
		return speed;
	}
	public void setSpeed(double speed) {
		this.speed = speed;
	}
	
	public void run(int distance){
		System.out.println(distance/speed);
	}
}
